<!DOCTYPE html>
<html>
	<!--
		once the compilations are compelted, the html will be minified to the specified output file
		
		@CompilePage(
			outputFile="output.html" 
			minify=true
		)
		@SourcePathTranslation(
			regex="/static/"
			replacement="/static2/"
		)
	-->
	<head>
		<title>happy path compilation tests</title>
		<script type="text/javascript" src="http://code.jquery.com/qunit/qunit-1.10.0.js"></script>
		<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.10.0.css">

		<!--
			this code will be left in the output file and used as exts for closure
			
			@ClosureExtern(name=ext)
		-->
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		<script type="text/javascript" src="js-ext/devtools.js"></script>
		<!--
			@ClosureExtern_end
		-->
		
		<!--
			this code will be compiled to the output file
			the script includes will be replaced with the compiled file 
			
			@ClosureCompilation(
				outputFile="js/test-min.js"
				externBlock=ext
				compilationLevel=ADVANCED_OPTIMIZATIONS
			)
		-->
		<script type="text/javascript" src="js-src/test-src-one.js"></script>
		<script type="text/javascript" src="js-src/test-src-two.js"></script>
		<!--
			@ClosureCompilation_end
		-->
		
		<!--
			@CopyFiles(
				outputDirectory="js/"
			)
		-->
		<script type="text/javascript" src="js-src/test-src-three.js"></script>
		<!--
			@CopyFiles_end
		-->
		
		<!-- @RemoveContent -->
		<script>
			alert("This is the source file.");
		</script>
		<!-- @RemoveContent_end -->
		
		<script>
			$(document).ready(function() {
				
				module("Compilation Tests");
				test("TestOne", function() {
					equal(TestOne.getValue(), "this is a test, it should be in italics. also: bla.");
				});
				test("TestTwo", function() {
					equal(TestTwo.computeValue(2), 10);
				});
				test("TestThree", function() {
					equal(TestThree.getValue(), "Third test js file");
				});
				
			});
		</script>
	</head>
	<body>
		This document tests the majority of the functionality available in the compiler without introducing too many weird error cases.
		<br/>
		<br/>
  		<div id="qunit">  </div>
  		<div id="qunit-fixture"> </div>
	</body>
</html>